package com.wc.blue_bridge_test.base.T46;

import java.io.PrintWriter;

/**
 * @Author congege
 * @Description 特殊的数字
 * https://lx.lanqiao.cn/problem.page?gpid=T46###
 * @Date Created in 2023/12/24-11:19
 */
public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args) {
        for (int i = 100; i <= 999; i++) {
            if (isWaterNum(i)){
                out.println(i);
            }
        }
        out.flush();
    }

    public static boolean isWaterNum(int val) {
        int n = val;
        int ans = 0;
        while (n > 0) {
            ans += (int) Math.pow(n % 10, 3);
            n /= 10;
        }
        return ans == val;
    }
}
